package blackeagle.ems.entities;

import blackeagle.ems.dal.DataList;

/**
 * A collection of subprojects.
 */
public class SubprojectCollection extends DataList<Subproject,SubprojectCollection> {
    /**
     * The default 0-parameter constructor.
     */
    public SubprojectCollection(){}    
    
    @Override
    public Subproject getById(Integer id){
        Subproject retval = null;
        
        for(Subproject sp : this){
            if(sp.getId()==id){
                retval = sp;
                break;
            }
        }
        
        return retval;
    }
}
